<template>
  <div class="header-box">
    <div class="header">
      <div class="header-title">
        <a class="nav-header" href="">
          <img class="nav-logo" src="../assets/logo.png" alt="腾讯问卷" />
          <h1 class="site-title">腾讯问卷</h1>
        </a>
        <div class="nav-title ">
          <a class=" nav-create font" href="">创建问卷</a>
          <a class="font nav-margin" href="">我的问卷</a>
          <a class="font nav-margin" href="">回答小组</a>
          <a class="font nav-margin" href="">调查资讯</a>
          <a class="font nav-margin" href="">帮助中心</a>
        </div>
      </div>
      <!-- <a class="btn" href="">登录</a> -->
      <div class="user">
        <img class="logo-bell" src="../assets/bell.png" alt="">
        <img class="logo-user" src="../assets/logo-user.jpg" alt="">
        <span class="user-name">六六.</span>
        <span class="splitor">|</span>
        <a class="logout" href="">退出</a>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style>
body {
  margin: 0;
}
</style>

<style lang="scss" scoped>
.header-box {
  position: fixed;
  height: 60px;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.header {
  box-sizing: border-box;
  width: 1040px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
}

.header-title {
  display: flex;
}
.nav-logo {
  display: block;
  margin-right: 5px;
  width: 32px;
  height: 32px;
}
.site-title {
  font-size: 21px;
  font-weight: normal;
  color: #333333;
  font-family: tencentFont, sans-serif;
  margin: 0;
  text-align: center;
  margin-right: 59px;
}
.site-title:hover {
  color: #58a6e7;
}

.font:hover::after {
  content: "";
  position: absolute;
  background-color: #58a6e7;
  height: 2px;
  width: 65px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.nav-header {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-create {
  text-decoration: none;
  color: #333333;
}
.font {
  display: inline-block;
  position: relative;
  color: #333333;
  text-decoration: none;
  line-height: 60px;
}
.font:hover {
  color: #58a6e7;
}
.nav-title {
  width: 540px;
  height: 60px;
  font-size: 17px;
}
.nav-margin {
  margin-left: 50px;
}
.btn {
  display: inline-block;
  width: 70px;
  height: 34px;
  background-color: #80c200;
  color: #fff;
  text-decoration: none;
  line-height: 34px;
  text-align: center;
  border-radius: 5px;
  font-size: 14px;
  margin-top: 11px;
}
.btn:hover {
  background-color: #5aae00;
}
.user{
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-bell {
  width: 20px;
  height: 20px;
  margin-right: 25px;
}
.logo-user {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin-right: 5px;
}
.user-name {
  font-size: 14px;
  margin-right: 6px;
}
.user-font {
  font-size: 15px;
}

.splitor {
  color: #999;
  margin: 0 2px;
  font-size: 14px;
}
.logout{
  font-size: 14px;
  text-decoration: none;
  color: #333;
  margin-left: 5px;
}
.logout:hover {
  color: #58a6e7;
}
@font-face {
  font-family: "tencentFont";
  src: url("../assets/fontmin.ttf");
}
</style>
